package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import com.itheima.health.vo.OrderSubmitParam;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 会员DAO
 */
public interface MemberDao {
    void insert1(Member member);
    void insert(@Param("member") OrderSubmitParam orderSubmitParam,@Param("now") LocalDateTime now);
    Member selectByPhoneNumber(@Param("phoneNumber") String phoneNumber);
    Member selectById(Integer id);
    Integer selectMemberCont(@Param("month") String month);
    Integer selectByMemberRegTime(String dateNow);
    void updateByIdSelective(Member member);
    Long countByRegTimeBefore(@Param("endDate") String endDate);


    Long countByRegTimeRange(@Param("startDate") Date startDate, @Param("endDate") Date endDate);

    Integer selectAll();
    Integer findMemberCountBeforeDate(String value);

    void insert2(Member member);

}
